import {PopupManager} from 'element-ui/lib/utils/popup/index'
export function getMaxZIndex(){
  var zIndex = PopupManager.zIndex;
  console.log('PopupManager.zIndex',PopupManager.zIndex);
  if(zIndex){
    return zIndex;
  }
  let arr = [...document.all].map(e => + window.getComputedStyle(e).zIndex || 0);
  return arr.length ? Math.max(...arr) + 1 : 0
}
